$OpenBSD: patch-libXg_Makefile,v 1.1 2002/11/04 10:28:56 markus Exp $
--- libXg/Makefile.orig	Thu Oct 31 00:27:21 2002
+++ libXg/Makefile	Thu Oct 31 00:27:59 2002
@@ -8,17 +8,17 @@
 #	
 #	Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
 #	if your compiler supports posix-compatible compilation
-OS=-DIRIX5 -ansiposix
+OS=-D_POSIX_SOURCE -DSOLARIS
 
 #	add -Iincludedir for any include directories that need to be searched
-INCS=-I../include
+INCS=-I../include -I${X11BASE}/include
 
 #	set this if your X libraries are in different locations
 #	or if you need extra libraries to load with X11 applications
 XLIBS=-lXt
 
 #	add name of library orderer - use ":" if none
-RANLIB=:
+RANLIB=ranlib
 
 #	add name of librarian
 AR=ar
@@ -26,8 +26,7 @@ AR=ar
 #	the name of the library
 LIB=libXg.a
 
-CFLAGS=$(OS) -D_LIBXG_EXTENSION $(INCS)
-CC=cc
+CFLAGS+=$(OS) -D_LIBXG_EXTENSION $(INCS)
 
 OBJS=	arc.o arith.o balloc.o bitblt.o bitbltclip.o border.o bscreenrect.o\
 	circle.o clipline.o clipr.o copymasked.o cursorset.o cursorswitch.o\
@@ -50,7 +49,5 @@ nuke:	clean
 $(LIB):	$(OBJS)
 	$(AR) rv $(LIB) $(OBJS)
 	$(RANLIB) $(LIB)
-
-$(LIB)(%.o): %.o
 
 $(OBJS):	../include/libg.h libgint.h ../include/libc.h
